package com.market.service.impl;

import com.market.entity.Financing;
import com.market.mapper.FinancingMapper;
import com.market.service.FinancingService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class FinancingServiceImpl implements FinancingService {
    @Resource
    FinancingMapper financingMapper;

    /**
     * 终端财务收银明细
     * @param initial
     * @param number
     * @return
     */
    @Override
    public List<Financing> selectCashier(Integer initial, Integer number) {
        List<Financing> financings = financingMapper.selectCashier(initial,number);
        return financings;
    }

    /**
     * 终端财务收银明细-业务单号查询
     * @param odd
     * @return
     */
    @Override
    public Financing oddSelect(String odd) {
        Financing financing = financingMapper.oddSelect(odd);
        return financing;
    }
}
